package com.example.shop_car_2208.entity

import com.chad.library.adapter.base.entity.MultiItemEntity

data class GoodsResult(
    val code: Int,
    val `data`: List<Data>,
    val message: String
)

data class Data(
    val bannerList: List<String>,
    val category_id: Int,
    val goods_attribute: String,
    val goods_banner: String,
    val goods_code: String,
    val goods_default_icon: String,
    val goods_default_price: Int,
    val goods_desc: String,
    val goods_detail_one: String,
    val goods_detail_two: String,
    val goods_sales_count: Int,
    val goods_stock_count: Int,
    val id: Int,
    //自己定义的类型值
    var type:Int
): MultiItemEntity {
    override val itemType: Int
        get() = type
}